<script setup lang="ts">
import { onMounted, reactive, ref } from "@vue/runtime-core";
import { company } from './constant'
</script>

<template>
  <div class="container">
    <div class="header">
      <slot name="header"></slot>
    </div>
    <div class="wrapper">
      <div class="title">
        <div class="title-wrapper">
          <p class="normal-text"> 公司自<span class="higtlight">{{ company.year }}</span> 年成立</p>
        </div>
      </div>
      <div class="content">
        <div class="introduce">
          <div class="company">
            <p class="normal-text"><span class="higtlight">{{ company.name }}</span>{{ company.introduce }}</p>
          </div>
          <el-card class="map"></el-card>

        </div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="less">
.container {
  width: 100%;
  height: 100%;

  .wrapper {
    display: flex;
    align-items: flex-start;
    flex-direction: column;

    .title {

      .title-wrapper {
        margin: 30px auto;
      }

    }

    .content {
      .introduce {
        display: flex;

        .company {
          flex: 1;
          display: wrap;

        }

        .map {
          margin: 0 20px;
          width: 720px;
          height: 610px;
          background-image: url(../../assets/img/logo.png);
        }
      }
    }
  }
}

.normal-text {
  color: #000;
  font-weight: 500;
  text-overflow: wrap;
  text-align: left;
  letter-spacing: 1px;
  line-height: 24px;

  .higtlight {
    color: #09a4f4;
    font-size: 18px;
    font-weight: 600;
  }
}
</style>